how to build app with api in vue js